#ifndef __SUBSYSTEM_WATER_BLOCK_BEHAVIOR_H__
#define __SUBSYSTEM_WATER_BLOCK_BEHAVIOR_H__

#include "SubsystemFluidBlockBehavior.h"

namespace PocketSurvival
{
    class SubsystemTimeOfDay;

    class SubsystemWaterBlockBehavior : public SubsystemFluidBlockBehavior
    {
    protected:
        SubsystemTimeOfDay *m_timeOfDay;
    public:
        virtual bool onFluidInteract(int32_t interactValue, int32_t x, int32_t y, int32_t z, int32_t fluidValue) override;
        virtual void onItemHarvested(int32_t x, int32_t y, int32_t z, int32_t blockValue, BlockDropValue &outDropValue, int32_t &outNewBlockValue) override;

    public:
        SubsystemWaterBlockBehavior();

        virtual void update(float dt) override;
        virtual void load(const nlohmann::json& json) override;

        virtual const std::string& getName() const override;
        virtual SubUpdateType getUpdateType() override;
    };
}

#endif